{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "_macros.html" as macros %}

{% block title %}万屏时代OPC--战区列表{% endblock %}

{% block panel_heading %}
  万屏时代OPC--战区列表
    <div class="pull-right btn-group">
        <a href="{{ url_for('war_zone_bp.add_war_zone') }}" class="btn btn-xs btn-success" style="margin-right: 5px;">
            新增战区
        </a>
    </div>
{% endblock %}

{% block panel_body %}

    <table id="wechat_template_table" class="table table-bordered table-hover table-condensed table-striped">
        <thead>
            <tr>
                <th>ID</th>
                <th>战区经理</th>
                <th>战区名</th>
                <th>省份</th>
{#                <th>操作</th>#}
            </tr>
        </thead>
        <tbody>
            {% for each in data %}
            <tr>
                <td>{{ each.id }}</td>
                <td>{{ each.admin.nickname }}</td>
                <td>{{ each.name }}</td>
                <td>{{ each.areas_display }}</td>
{#                <td>#}
{#                    <a href="{{ url_for('war_zone_bp.edit_war_zone', zone_id=each.id) }}" class="btn btn-success">#}
{#                      编辑#}
{#                    </a>#}
{#                </td>#}
            </tr>
            {% endfor %}
        </tbody>
    </table>

{% endblock %}

